<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }

        div.show {
            width: 400px;
            height: 150px;
            border: 10px solid pink;
            margin: 30px auto;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            position: relative;
        }

        img {
            width: 100px;
            height: 100px;
            display: block;
        }

        .current {
            width: 288px;
            height: 180px;
            position: absolute;
            top: 0;
            left: 0;
            display: none;
        }

        .current>img {
            width: 100%;
            height: 100%;
        }
    </style>
</head>

<body>

    <div class="show">
        <img src="./img/1.png" alt="">
        <img src="./img/2.png" alt="">
        <img src="./img/3.png" alt="">
        <div class="current">
            <img src="./img/1.png" alt="">
        </div>
    </div>
</body>
<script src="../jquery/jquery.min.js"></script>
<script>
    //三个事件,移入\移动\移出
    $(".show>img").mouseenter(function () {
        $(".current").fadeIn(200)
    }).mousemove(function (e) {
        $(".current").css({ left: $(this).position().left + e.offsetX + 10, top: $(this).position().top + e.offsetY + 10 }).find("img").attr("src", $(this).attr("src"))
    }).mouseleave(function () {
        $(".current").fadeOut(200)
    })
</script>

</html>